﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ipaidabribe.AdminCP
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnLogin_Click(object sender, EventArgs e)
        {
            string _username = this.txtUsername.Text.Trim();
            string _password = this.txtPassword.Text.Trim();

            if ((_username == "hoanhoabong") && (_password == "h2iu04122010"))
            {
                Session["ADMIN"] = "hoanhoabong";
                Session["LOGIN"] = 1;
                Response.Redirect("index.aspx");
            }
            else
            {
                this.lblError.Text = "Error when logging in. Pls try again.";
            }
        }
    }
}